GetPartitions Method

Task Parallel System.Threading

Partitions the underlying collection into the given number of partitions.

Namespace:  System.Collections.Concurrent
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public MustOverride Function GetPartitions ( _
	partitionCount As Integer _
) As IList(Of IEnumerator(Of TSource))
C#
public abstract IList<IEnumerator<TSource>> GetPartitions(
	int partitionCount
)

Parameters

partitionCount
Type: System..::.Int32
The number of partitions to create.

Return Value

A list containing partitionCount enumerators.

See Also